package com.yt.mapper;

import com.yt.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Classname UserMapper
 * @Description
 * @Date 2021/11/8 9:05
 * @Create by 杨涛
 */
@Mapper
public interface UserMapper {

    @Select("select * from user")
    public List<User> getUsers();
    @Select("select * from user where uid =#{uid}")
    public User getUserById(int uid);
}
